package ar.com.gep.soccer.entities;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

import ar.com.cdt.framework.persistence.entity.Base;

@Entity
public class League extends Base {

	private static final long serialVersionUID = -1324832685657145311L;

	@Column
	private int currentEdition;

	@Column
	private String name;

	@ManyToMany
	private List<Edition> editions;

	public int getCurrentEdition() {
		return currentEdition;
	}

	public void setCurrentEdition(int currentEdition) {
		this.currentEdition = currentEdition;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Edition> getEditions() {
		return editions;
	}

	public void setEditions(List<Edition> editions) {
		this.editions = editions;
	}

}
